Repository navigation
Conversation
cnzakii
force-pushed
the
python-native-rebuild
branch
9 times, most recently
from
November 16, 2026 12:37
a20307e to
1121c12
Compare
cnzakii
force-pushed
the
python-native-rebuild
branch
11 times, most recently
from
November 20, 2026 10:34
f9e9ad1 to
60b148b
Compare
Replace the previous implementation with a new one built on asyncio and AnyIO, with uvloop optional, for Python 3.11 to 3.14: - the Triple protocol over HTTP/2, interoperable with gRPC, and the Dubbo protocol with Hessian 2, both in the default installation; - application-level and interface-level service discovery on ZooKeeper and Nacos, with metadata services and reports, and configuration centers; - clusters, load balancers, condition and tag routers, configurators and filters, as extension points loaded by entry points; - configuration from code, files and environment variables; - the protoc plugin that generates service stubs; - samples, from a first call to a small shop of services behind FastAPI, an agent of Pydantic AI whose tools are services, and calls to and from Dubbo Java and Dubbo Go, each with a README and run by the tests; - end-to-end benchmarks of servers on one core and on eight, beside Dubbo Java, Dubbo Go and the gRPC libraries of Python, and of a Dubbo Python consumer; - unit and integration tests on a virtual clock, CI on GitHub Actions, and release candidates for the release manager to sign. Extras add the ZooKeeper and Nacos clients, the YAML and properties configuration formats, uvloop and protoc.
cnzakii
force-pushed
the
python-native-rebuild
branch
from
November 20, 2026 11:53
60b148b to
6510188
Compare
cnzakii
marked this pull request as ready for review
November 20, 2026 12:12
4 tasks done
cnzakii
marked this pull request as draft
November 22, 2026 15:19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes apache/dubbo#16595
Summary
This PR replaces the previous implementation with a new Python-native framework for Apache Dubbo. It runs on asyncio, with AnyIO for structured concurrency and uvloop as an option, and supports Python 3.11 to 3.14 on Linux, macOS and Windows.
It talks to Dubbo Java and Dubbo Go over both the Triple and Dubbo protocols, finds and registers services through ZooKeeper and Nacos as they do, and brings the governance of the other Dubbo languages to Python.
Highlights
grpcurl, health checks and reflection work with it.typing.Protocolwith type hints, calls areasync, and an application runs insideasync with, in any asyncio program. Each method of a reference has the name, signature, type annotations and docstring of its contract, so that tools that read them, such as AI agent frameworks, can take it as a function.Features
typing.Protocol, or generated from.protofiles byprotoc-gen-python-dubbo.zookeeper,nacos,yaml,properties,uvloopandprotoc.Samples
samples/holds 22 samples, each with a README. The tests run them as their READMEs say. CI skips the logging, extensions, TLS, FastAPI and Pydantic AI samples, whose packages it does not install.Performance
benchmark/measures each server with the same echo service, Protobuf over Triple and Hessian 2 over Dubbo, under the same load: on Linux with a 32-core Xeon, the server pinned to its cores withtasksetand the load on the others, the median of three rounds. None of the 81 million calls failed.Calls per second, with 128-byte / 16 KiB payloads:
Tests at scale
Besides CI, the framework went through several rounds of tests at scale on Linux hosts, with providers and consumers in containers beside Dubbo Java, Dubbo Go, ZooKeeper and Nacos:
Compatibility
Testing